package com.hymall.mapper;

import com.hymall.bean.MarketOrderGoods;
import com.hymall.bean.MarketOrderGoodsExample;
import com.hymall.bean.vo.AdminStatGoodsInnerRowsVO;
import com.hymall.bean.vo.AdminStatOrderInnerRowsVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MarketOrderGoodsMapper {
    long countByExample(MarketOrderGoodsExample example);

    int deleteByExample(MarketOrderGoodsExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MarketOrderGoods record);

    int insertSelective(MarketOrderGoods record);

    List<MarketOrderGoods> selectByExample(MarketOrderGoodsExample example);

    MarketOrderGoods selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MarketOrderGoods record, @Param("example") MarketOrderGoodsExample example);

    int updateByExample(@Param("record") MarketOrderGoods record, @Param("example") MarketOrderGoodsExample example);

    int updateByPrimaryKeySelective(MarketOrderGoods record);

    int updateByPrimaryKey(MarketOrderGoods record);

    /**
     * @author 章鹏
     * @description 统计报表 → 订单统计 → 按天统计订单量，下单货品数量，下单货品总额
     * @date 2022/7/17 19:34
     * @param []
     * @return java.util.List<com.hymall.bean.vo.AdminStatGoodsInnerRowsVO>
     */
    List<AdminStatGoodsInnerRowsVO> selectGoodsCountGroupByDay();
}